package month3.day30;

public class Zulingxinxi {
    private int day;
    private String name;
    private String chepai;


    public Zulingxinxi(String name, String chepai, int day) {
        this.name = name;
        this.chepai = chepai;
        this.day = day;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    @Override
    public String toString() {
        return "租车人姓名：" + name  +
                ", 车牌：" + chepai  +
                "，租赁时间：" + day+"天"
                ;
    }
}
